/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* Google Drive welcome banners.*/

.drive-welcome-icon {
  background-image: -webkit-image-set(
    url(../images/files/ui/drive_logo.png) 1x,
    url(../images/files/ui/2x/drive_logo.png) 2x);
  background-repeat: no-repeat;
}

.drive-welcome-links {
  flex: none;
  margin-top: 6px;
}

.drive-welcome .imitate-paper-button {
  background-color: white;
  color: rgb(49, 102, 212);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

/* Header welcome banner. */
.drive-welcome.header {
  flex: none;
  height: 128px;
  overflow: hidden;
  position: relative;
  transition: height 180ms ease, visibility 0ms linear 180ms;
}

.dialog-container:not([drive-welcome='header']) .drive-welcome.header {
  height: 0;
  visibility: hidden;
}

.drive-welcome.header .drive-welcome-wrapper {
  align-items: center;
  background-color: rgb(49, 102, 212);
  bottom: 0;
  color: white;
  display: flex;
  flex-direction: row;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.drive-welcome.header .drive-welcome-icon {
  background-color: white;
  background-position: center;
  background-size: 64px 64px;
  border-radius: 4px;
  flex: none;
  height: 78px;
  margin: 25px;
  width: 78px;
}

.drive-welcome.header .drive-welcome-message {
  -webkit-margin-end: 50px;
  -webkit-margin-start: 20px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.drive-welcome.header .drive-welcome-title {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-welcome.header .drive-welcome-text {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-welcome.header .drive-welcome-dismiss {
  display: none;
}

.drive-welcome.header .drive-welcome-links {
  z-index: 1;
}

.drive-welcome.header .drive-welcome-links > a {
  display: inline-block;
}

.drive-welcome.header .banner-close {
  top: 0;
}

.drive-welcome.header .banner-people {
  background-image: -webkit-image-set(
      url(../images/files/ui/drive_banner_people.png) 1x,
      url(../images/files/ui/2x/drive_banner_people.png) 2x);
  height: 128px;
  position: absolute;
  top: 0;
  width: 106px;
}

html[dir='ltr'] .drive-welcome.header .banner-people {
  right: 38px;
}

html[dir='rtl'] .drive-welcome.header .banner-people {
  left: 38px;
}

.drive-welcome.header .banner-cloud-bg {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleY(-1);
}

.drive-welcome.header .plain-link {
  color: white;
  font-size: 16px;
  text-decoration: underline;
}

/* Full page welcome banner. */
.drive-welcome.page {
  bottom: 0;
  flex: none;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.dialog-container:not([drive-welcome='page']) .drive-welcome.page {
  display: none;
}

.drive-welcome.page .cr-dialog-close {
  display: none;
}

.drive-welcome.page .drive-welcome-wrapper {
  align-items: center;
  background-color: white;
  /* This image looks good in high DPI as is. */
  background-image: url(../images/files/ui/clouds.png);
  background-repeat: repeat-x;
  background-size: 520px 173px;
  bottom: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  font-size: 120%;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

.drive-welcome.page .drive-welcome-icon {
  background-position: center;
  background-size: 88px 88px;
  height: 200px;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
}

.drive-welcome.page .drive-welcome-message {
  margin-left: 10px;
  margin-right: 10px;
  max-width: 525px;
}

.drive-welcome.page .drive-welcome-title {
  font-size: 133%;
  margin-bottom: 30px;
  text-align: center;
}

.drive-welcome.page .drive-welcome-text {
  font-size: 13px;
  margin-bottom: 24px;
}

.drive-welcome.page .drive-welcome-dismiss {
  margin-left: 20px;
}

.drive-welcome.page .drive-welcome-links {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin: 12px 0;
  max-width: 525px;
  width: 100%;
}

.drive-welcome.page .primary,
.drive-welcome.page .primary:hover {
  background-color: rgb(33, 150, 243);
  color: white;
}

.drive-welcome.page .secondary {
  color: rgb(100, 100, 100);
}

.drive-welcome.page .secondary:hover {
  color: rgb(33, 150, 243);
}

body:not([type='full-page']) .drive-welcome.page .drive-welcome-wrapper {
  background-position: 0 0;
}

body:not([type='full-page']) .drive-welcome.page .drive-welcome-icon {
  height: 200px;
}
